package com.tianhua.javs.core.engine.filter;

import com.tianhua.javs.client.bean.JavsTranslateContextBean;
import com.tianhua.javs.core.engine.TranslateFilter;
import org.springframework.stereotype.Component;

/**
 * Description:代码段语句过滤处理
 * date: 2022/2/11
 *
 * @author shenshuai
 * @version 1.0.0
 * @since JDK 1.8
 */
@Component(value = "segmentFilter")
public class SegmentFilter implements TranslateFilter {
    @Override
    public String filter(JavsTranslateContextBean translateContextBean, String javsShell) {
        if(javsShell.contains("->")){
            //do = bo.convertdo()
            //多个代码段的处理
            String [] assignArr = javsShell.split("->");

        }else {

        }
        return null;
    }
}
